﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HRDexCapstoneProject.Functions.Messege
{
    public partial class messege : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnNewMessege_Click(object sender, ImageClickEventArgs e)
        {

        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Server.Transfer("~/Functions/Messege/ReceivedItems.aspx?fromEmpID="+SessionID());
        }

        string SessionID()
        {
            return Session["EmployeeID"].ToString();
        }

        protected void btnSent_Click(object sender, EventArgs e)
        {
            Server.Transfer("~/Functions/Messege/SentItems.aspx?EmployeeID="+SessionID());
        }

        protected void btnSearch_Click(object sender, ImageClickEventArgs e)
        {
            Session["msgSearch"] = TextBox1.Text;
            Server.Transfer("~/Functions/Messege/Received.aspx");
        }
    }
}